package com.glela.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.glela.order.mapper.OrderSettlementCommisionMapper;
import com.glela.order.model.OrderSettlementCommision;
import com.glela.order.service.OrderSettlementCommisionService;
@Service("OrderSettlementCommisionService")
public class OrderSettlementCommisionServiceImpl implements OrderSettlementCommisionService{
	@Autowired
	private OrderSettlementCommisionMapper orderSettlementCommisionMapper ;
	@Override
	public int saveOrderSettlementCommision(OrderSettlementCommision record) {
		return orderSettlementCommisionMapper.insert(record);
	}

	@Override
	public OrderSettlementCommision getOrderSettlementCommisionByorderID(
			Long order_object_id) {
		return orderSettlementCommisionMapper.selectByorderID(order_object_id);
	}

	@Override
	public OrderSettlementCommision getOrderSettlementCommisionByorderSn(
			String order_sn) {
		return orderSettlementCommisionMapper.selectByorderSn(order_sn);
	}

	@Override
	public int updateStatus(String errorMsg, int newStatus, int noldStatus,
			String resultTime, Long id) {
		return orderSettlementCommisionMapper.updateStatus(errorMsg, newStatus, noldStatus, resultTime, id);
	}

	@Override
	public List<OrderSettlementCommision> selectByStatusLimitNumber(int status, int Nums) {
		return orderSettlementCommisionMapper.selectByStatusLimitNumber(status, Nums);
	}

}
